package com.ipfsemc.ipfsemc.service;

import com.ipfsemc.ipfsemc.model.Product;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IProductService {

    @Transactional(readOnly = true)
    public List<Product> listProduct();

    @Transactional(readOnly = true)
    public List<Product> list(Product product);

    @Transactional(readOnly = true)
    public Product selectProByKey(String proId);

    public int add(Product product);

    public int update(Product product);

    public int del(String proId);
}
